<template>
  <div class="tab">
    <router-link tag="div" class="tab-item" to="/recommend">
      <span class="tab-link">推荐</span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/singer">
      <span class="tab-link">歌手</span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/rank">
      <span class="tab-link">排行</span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/search">
      <span class="tab-link">搜索</span>
    </router-link>
  </div>
</template>

<script>
  let _this = null;

  export default {
    data(){
      return {}
    },
    methods: {
      init () {
      },
    },
    watch: {},
    props: [],
    components: {},
    computed: {},
    mounted () {
      _this = this;
      _this.init();
    },
  }
</script>


<style lang="stylus" rel="stylesheet/stylus">
@import "../../common/stylus/variable.styl"

  .tab
    display flex
    height 44px
    line-height 44px
    box-sizing border-box
    font-size $font-size-medium
    .tab-item
      flex 1
      text-align center
      &.router-link-active
        color $color-theme
        border-bottom 2px solid $color-theme
      .tab-link
        padding-bottom 5px
        color $color-text-l

</style>
